<?php

defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />

<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->

<SCRIPT LANGUAGE="JavaScript">
vtlai();
</script>

<script type="text/javascript" src="http://media.adnetwork.vn/js/adnetwork.js"></script>

</head>

<body id="page_bg" >
<div id="bd">
	<div id="wrap">
    	<div id="header">
            <div id="logo">
                <a href="<?php echo $this->baseurl ?>" title="<?php echo $siteName; ?>"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo.jpg" /></a>
            </div>
            
            <?php if ( $this->countModules('banner') ) { ?>
             <div id="banner">
               <jdoc:include type="modules" name="banner" style="xhtml" />
             </div>
             
             <div id="banner2">
               <jdoc:include type="modules" name="banner2" style="xhtml" />
             </div>
            <?php } ?>
    	</div>
        
        <div id="menu">
        	<jdoc:include type="modules" name="menu" style="xhtml" />
            <div id="searchtop">
            	<jdoc:include type="modules" name="timkiem" style="xhtml" />
            </div>
        </div>
        
        <div id="wrap2">
        <div id="wrap2_inner">
			<?php if ( $this->countModules('slice') ) { ?>        
            <div id="home_top">
            
                <div id="slice">
                    <jdoc:include type="modules" name="slice" style="xhtml" /> 
                </div>
                
                <div id="tabs">
                    <jdoc:include type="modules" name="left" style="xhtml" /> 
                </div>
                
                <div id="bannera">
                    <jdoc:include type="modules" name="bannera" style="xhtml" /> 
                </div>
                
            </div>        
            
            <div id="home_cdkm">
            
                <div id="chuyende">
                    <jdoc:include type="modules" name="ja-contentslide" style="xhtml" />
                </div>
                
                <div id="km">
                    <jdoc:include type="modules" name="km" style="xhtml" />
                </div>
            
            </div>
            <?php } ?>
            
            <div id="main">
                
                <?php if ( $this->countModules('slice') ) { ?>
                <div id="janews">
                    <jdoc:include type="modules" name="ja-news" style="xhtml" />
                </div>
                <?php } ?>
                
                <?php	if (JRequest::getvar('layout')=='blog') { ?>
                <div id="compo1">
                	<div id="compo1_top">
	                    <jdoc:include type="component" />
                    </div>
                </div>
                <?php } ?>
                
                <?php	if (JRequest::getvar('layout')!='blog' && !$this->countModules('slice') ) { ?>
                <div id="compo2">
                	<div id="compo2_top">
                    	<div id="compo2_bot">
	                    	<jdoc:include type="component" />
                        </div>
                    </div>
                </div>
                <?php } ?>
                
                <?php	if (JRequest::getvar('layout')=='blog' || $this->countModules('slice') ) { ?>
                <div id="main_left">
                    <?php if ( $this->countModules('slice') ) { ?>
                    
                        <div id="tdhn">
                            <jdoc:include type="modules" name="tdhn" style="xhtml" />
                        </div>
                        
                        <div id="video">
                            <div id="video_inner">
                                <jdoc:include type="modules" name="video" style="xhtml" />
                            </div>
                        </div>
                        
                        <div id="meovat">
                            <jdoc:include type="modules" name="meovat" style="xhtml" />
                        </div>
                        
                        <div id="bannerb">
                            <jdoc:include type="modules" name="bannerb" style="xhtml" /> 
                        </div>
                    
                    <?php } ?>
                    
                    <?php	if (JRequest::getvar('layout')=='blog') { ?>                   
                    	
                                          
                        <div id="hot1" class="hot">
                        	<div class="hot_inner">
                            	<jdoc:include type="modules" name="hot1" style="xhtml" /> 
                            </div>
                        </div>
                        
                         <div id="bannerd">
                            <jdoc:include type="modules" name="bannerd" style="xhtml" /> 
                        </div>
                        
                        <div id="hot2" class="hot">
                        	<div class="hot_inner">
                            	<jdoc:include type="modules" name="hot2" style="xhtml" /> 
                            </div>
                        </div>
                        
                        <div id="hot3" class="hot">
                        	<div class="hot_inner">
                            	<jdoc:include type="modules" name="hot3" style="xhtml" /> 
                            </div>
                        </div>
                        
                    <?php } ?>
                
                </div>
                <?php } ?>
                <div id="main_right">
                    <jdoc:include type="modules" name="bannerc" style="xhtml" /> 
					<!-- Chen inity 1 -->
                   <script type="text/javascript" src="http://admicro1.vcmedia.vn/ads_codes/ads_box_1441.ads"></script>
					
                </div>
            </div>
            <script type="text/javascript" src="http://admicro1.vcmedia.vn/ads_codes/ads_box_1442.ads"></script>
			
	<?php 
		$_rand=mt_rand(0,2);
		switch ($_rand) 
		{
				case 0:
			    ?>
			         <script type="text/javascript" src="http://media.adnetwork.vn/js/adnetwork.js"></script>
				     <script type="text/javascript">
				     var ABDZone = new Array();
				     ABDZone[0] = '<script type="text/javascript" language="javascript" src="http://delivery.adnetwork.vn/247/adclick/ads_em9uZV9NVE14TURVek9UYzVNVjh4TXpBNE1Ua3pNakEwWHpNM01GOHlORFk9Lmh0bWxVNzI4STdWRTEwMTAxMDc4Mk0zOFc=/"><\/script>';
				     ABDZone[1] = '<script type="text/javascript" language="javascript" src="http://delivery.adnetwork.vn/247/adclick/ads_em9uZV9NVE14TURVek9UYzRNVjh4TXpBNE1Ua3pNakEwWHpJMk1GOHlNekE9Lmh0bWxVNzI4STdWRTEwMTAxMDc4Mk0zOFc=/"><\/script>';
				     rotatorAdNetwork("ADBCookie", ABDZone);
			         </script>
			    <?php  
			break;
				case 1:
			    ?>
				    <!-- Zone Tag : Tap Chi Mon Ngon Balloon Ad -->
                    <!-- Chen inity 2 -->
				    <script type="text/javascript" src="http://media.adnetwork.vn/js/adnetwork.js"></script>
				    <script type="text/javascript">
				    var ABDZone = new Array();
				    ABDZone[0] = '<script type="text/javascript" language="javascript" src="http://delivery.adnetwork.vn/247/adclick/ads_em9uZV9NVE14TURVek9UYzVNVjh4TXpBNE1Ua3pNakEwWHpNM01GOHlORFk9Lmh0bWxVNzI4STdWRTEwMTAxMDc4Mk0zOFc=/"><\/script>';
				    ABDZone[1] = '<script type="text/javascript" language="javascript" src="http://delivery.adnetwork.vn/247/adclick/ads_em9uZV9NVE14TURVek9UYzRNVjh4TXpBNE1Ua3pNakEwWHpJMk1GOHlNekE9Lmh0bWxVNzI4STdWRTEwMTAxMDc4Mk0zOFc=/"><\/script>';
				    rotatorAdNetwork("ADBCookie", ABDZone);
			    <?php
			break;
				case 2:
			    ?>
				   <script type="text/javascript">
                   innity_pub = "b29eed44276144e4e8103a661f9a78b7";
                   innity_cat = "FOOD_DINING,WOMEN,YOUTH,ENTERTAINMENT";
                   innity_zone = "20685";
                   innity_width = "260";
                   innity_height = "230";
                   innity_country = "VN";
                   </script>
                   <script type="text/javascript" src="http://cdn.innity.com/network.js"></script>
			    <?php
		}
	?>
			
            <div id="footer">
                    <div id="menu_footer">
                        <jdoc:include type="modules" name="mn_foot" style="xhtml" /> 
                    </div>
                    
                    <div id="lhqc">
                        <jdoc:include type="modules" name="lhqc" style="xhtml" /> 
                    </div>
                    
                    <div id="developer">
                        <jdoc:include type="modules" name="developer" style="xhtml" /> 
                    </div>
                    
                    <div id="add">
                        <jdoc:include type="modules" name="add" style="xhtml" /> 
                    </div>
                    
            </div>
        </div>
        </div>
        
    </div>
</div>

<jdoc:include type="modules" name="debug" />

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-3607721-12']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

<!-- Dat the nay o <head> hoac ngay truoc the  </body> -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

</body>
</html>